<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>1_使用jsx创建虚拟dom</title>
</head>
<body>
    <div id="test"></div>
    <div id="demo"></div>
    
    <script type="text/javascript" src="../js/react.development.js"></script>
    <script type="text/javascript" src="../js/react-dom.development.js"></script>
    <script type="text/javascript" src="../js/babel.min.js"></script>

    <script type="text/babel">  

        var VDOM =(
        <h1 id="title">
            <span>hello,react</span>
        </h1>)

        ReactDOM.render(VDOM,document.getElementById('test'))

        var TDOM =document.getElementById('demo')

        console.log('真实DOM',TDOM);
        console.log("虚拟DOM",VDOM);
        
        debugger;

    </script>
</body>
</body>
</html>